{extend name="layout" /}
{block name="main"}
<div class="ncsc-index">
    <div class="seller-cont">
        <div class="container type-a">
            <div class="hd">
                <h3>产品发布</h3>
                <h5>产品发布审核中心</h5>
            </div>
            <div class="content">
                <dl class="focus">
                    <dt>店铺商品发布情况：</dt>
                    <dd title="已发布/"><em id="nc_goodscount">0</em>&nbsp;/&nbsp;
                       wwwww
                    </dd>
                    <dt>wwww</dt>
                    <dd><em id="nc_imagecount">0</em>&nbsp;/&nbsp;</dd>
                </dl>
                <ul>
                    <li><a href="index.php?s=store_goods_online&op=index">rrrr <strong id="nc_online"></strong></a></li>

                    <li><a href="index.php?s=store_goods_offline&op=index&type=wait_verify&verify=10" title="<?php echo $lang['store_inform30'];?>">发布待平台审核 <strong id="nc_waitverify"></strong></a></li>
                    <li><a href="index.php?s=store_goods_offline&op=index&type=wait_verify&verify=0" title="<?php echo $lang['store_inform30'];?>">平台审核失败 <strong id="nc_verifyfail"></strong></a></li>

                    <li><a href="index.php?s=store_goods_offline&op=index"><?php echo $lang['store_goods_storage'];?> <strong id="nc_offline"></strong></a></li>
                    <li><a href="index.php?s=store_goods_offline&op=index&type=lock_up"><?php echo $lang['store_goods_show0'];?> <strong id="nc_lockup"></strong></a></li>
                    <li><a href="index.php?s=store_consult&op=consult_list&type=to_reply"><?php echo $lang['store_to_consult'];?> <strong id="nc_consult"></strong></a></li>
                </ul>
            </div>
        </div>
        <div class="container type-b">
            <div class="hd">
                <h3>系统公告</h3>
                <h5></h5>
            </div>
            <div class="content">
                <ul>
                    <li><a target="_blank" target="_blank" href="">
                     </a></li>
                </ul>
                <dl>
                    <dt>6666</dt>
                    <dd>666/dd>
                    <dd>2222</dd>
                </dl>
            </div>
        </div>
        <div class="container type-c">
            <div class="hd">
                <h3>销售情况统计</h3>
                <h5>按周期统计商家店铺的订单量和订单金额</h5>
            </div>
            <div class="content">
                <table class="ncsc-default-table">
                    <thead>
                    <tr>
                        <th class="w50">项目</th>
                        <th>订单量</th>
                        <th class="w100">订单金额</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="bd-line">
                        <td>昨日销量</td>
                        <td>77</td>
                        <td>77</td>
                    </tr>
                    <tr class="bd-line">
                        <td>月销量</td>
                        <td>77</td>
                        <td>777</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="container type-c h500">
            <div class="hd">
                <h3>单品销售排名</h3>
                <h5>掌握30日内最热销的商品及时补充货源</h5>
            </div>
            <div class="content">
                <table class="ncsc-default-table">
                    <thead>
                    <tr>
                        <th>排名</th>
                        <th class="tl" colspan="2">商品信息</th>
                        <th>销量</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="bd-line">
                        <td class="w50"><strong>7777</strong></td>
                        <td class="w60"><div class="pic-thumb"><a href="55555" src="2222"></a></div></td>
                        <td><dl class="goods-name">
                            <dt><a href="" target="_blank">6</a></dt>
                        </dl></td>
                        <td class="w60">666</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script>
    $(function(){
        var timestamp=Math.round(new Date().getTime()/1000/60);
        $.getJSON('index.php?s=seller_center&op=statistics&rand='+timestamp, null, function(data){
            if (data == null) return false;
            for(var a in data) {
                if(data[a] != 'undefined' && data[a] != 0) {
                    var tmp = '';
                    if (a != 'goodscount' && a != 'imagecount') {
                        $('#nc_'+a).parents('a').addClass('num');
                    }
                    $('#nc_'+a).html(data[a]);
                }
            }
        });
    });
</script>
{/block}